package com.example.midushop.service.product.impl;

import com.example.midushop.entity.product.attr.SPU_Attr;
import com.example.midushop.mapper.product.attr.SPU_AttrMapper;
import com.example.midushop.service.product.SPU_AttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品规格参数服务接口实现类
 */
@Service
public class SPU_AttrServiceImpl implements SPU_AttrService {
    @Autowired
    SPU_AttrMapper spu_attrMapper;
    @Override
    public int addSPU_Attr(long spu_id, long attr_id, String value, int sort) {
        return spu_attrMapper.addSPU_Attr(spu_id,attr_id,value,sort);
    }

    @Override
    public List<SPU_Attr> findSPU_Attr(long id, long spu_id, long attr_id, String value) {
        return spu_attrMapper.findSPU_Attr(id,spu_id,attr_id,value);
    }
}
